package com.chenfan.mcn.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 项目管理红人关联表
 * </p>
 *
 * @author lizhejin
 * @since 2022-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("doc_kocpm_redstar")
public class DocKocpmRedstar implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 项目管理红人关联id
     */
    @TableId(value = "kocpm_relation_id", type = IdType.AUTO)
    private Long kocpmRelationId;

    /**
     * 项目管理id
     */
    private Long kocpmId;

    /**
     * 红人平台id
     */
    @NotNull(message ="红人平台id不能为空")
    private Long starPlatformInfoId;

    /**
     * 执行金额
     */
    private BigDecimal excuteMoney;

    /**
     * 创建人名称
     */
    private String createName;

    private Long createBy;

    /**
     * 创建日期
     */
    private LocalDateTime createDate;

    private Long companyId;

    /**
     * 租户ID
     */
    private Long tenantId;


}
